package com.cover.pojo;

import java.math.BigDecimal;

public class CarList {
    private String ID;
    private String Lpn;
    private String LpnColor;
    private String Color;
    private String Brand;
    private String Type;
    private String Speed;
    private String PosX;
    private String PosY;
    private String Lon;
    private String Lat;
    private BigDecimal Lon1;
    private BigDecimal Lat1;
    private float PtcHeading;
    private int VehType;
    private float Vehl;
    private int ObjId;
    private int GlobalId;
    private int Count;
    private int IsBayonetMatch;
    private String ChargeContent;
    private String ChargeType;
    private float DifferLon;
    private float DifferLat;
    private int AnalogNum;

    public int getAnalogNum() {
        return AnalogNum;
    }

    public void setAnalogNum(int analogNum) {
        AnalogNum = analogNum;
    }

    public String getBrand() {
        return Brand;
    }

    public void setBrand(String brand) {
        Brand = brand;
    }

    public String getChargeContent() {
        return ChargeContent;
    }

    public void setChargeContent(String chargeContent) {
        ChargeContent = chargeContent;
    }

    public String getChargeType() {
        return ChargeType;
    }

    public void setChargeType(String chargeType) {
        ChargeType = chargeType;
    }

    public String getColor() {
        return Color;
    }

    public void setColor(String color) {
        Color = color;
    }

    public int getCount() {
        return Count;
    }

    public void setCount(int count) {
        Count = count;
    }

    public float getDifferLat() {
        return DifferLat;
    }

    public void setDifferLat(float differLat) {
        DifferLat = differLat;
    }

    public float getDifferLon() {
        return DifferLon;
    }

    public void setDifferLon(float differLon) {
        DifferLon = differLon;
    }

    public int getGlobalId() {
        return GlobalId;
    }

    public void setGlobalId(int globalId) {
        GlobalId = globalId;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public int getIsBayonetMatch() {
        return IsBayonetMatch;
    }

    public void setIsBayonetMatch(int isBayonetMatch) {
        IsBayonetMatch = isBayonetMatch;
    }

    public String getLat() {
        return Lat;
    }

    public void setLat(String lat) {
        Lat = lat;
    }

    public BigDecimal getLat1() {
        return Lat1;
    }

    public void setLat1(BigDecimal lat1) {
        Lat1 = lat1;
    }

    public String getLon() {
        return Lon;
    }

    public void setLon(String lon) {
        Lon = lon;
    }

    public BigDecimal getLon1() {
        return Lon1;
    }

    public void setLon1(BigDecimal lon1) {
        Lon1 = lon1;
    }

    public String getLpn() {
        return Lpn;
    }

    public void setLpn(String lpn) {
        Lpn = lpn;
    }

    public String getLpnColor() {
        return LpnColor;
    }

    public void setLpnColor(String lpnColor) {
        LpnColor = lpnColor;
    }

    public int getObjId() {
        return ObjId;
    }

    public void setObjId(int objId) {
        ObjId = objId;
    }

    public String getPosX() {
        return PosX;
    }

    public void setPosX(String posX) {
        PosX = posX;
    }

    public String getPosY() {
        return PosY;
    }

    public void setPosY(String posY) {
        PosY = posY;
    }

    public float getPtcHeading() {
        return PtcHeading;
    }

    public void setPtcHeading(float ptcHeading) {
        PtcHeading = ptcHeading;
    }

    public String getSpeed() {
        return Speed;
    }

    public void setSpeed(String speed) {
        Speed = speed;
    }

    public String getType() {
        return Type;
    }

    public void setType(String type) {
        Type = type;
    }

    public float getVehl() {
        return Vehl;
    }

    public void setVehl(float vehl) {
        Vehl = vehl;
    }

    public int getVehType() {
        return VehType;
    }

    public void setVehType(int vehType) {
        VehType = vehType;
    }

    public void setLonAndLat() {
        this.Lon1 = new BigDecimal(this.Lon);
        this.Lat1 = new BigDecimal(this.Lat);
    }

//    @Override
//    public String toString() {
//        return "CarList{" +
//                ", 车牌号='" + Lpn + '\'' +
//                ", 车牌颜色='" + LpnColor + '\'' +
//                ", 车身颜色='" + Color + '\'' +
//                ", 速度='" + Speed + '\'' +
//                ", X坐标='" + PosX + '\'' +
//                ", Y坐标='" + PosY + '\'' +
//                ", 经度='" + Lon + '\'' +
//                ", 纬度='" + Lat + '\'' +
//                ", 经度变化=" + DifferLon +
//                ", 纬度变化=" + DifferLat +
//                '}';
//    }

    @Override
    public String toString() {
        return AnalogNum + "," + ID + "," + Lpn + "," + LpnColor + "," + Color + "," +
                Brand + "," + Type + "," + Speed + "," + PosX + "," + PosY + "," +
                Lon + "," + Lat + "," + PtcHeading + "," + VehType + "," + Vehl + "," +
                ObjId + "," + GlobalId + "," + Count + "," + IsBayonetMatch + "," +
                ChargeContent + "," + ChargeType + "," + DifferLon + "," + DifferLat;
    }
}
